<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
        <meta name="apple-mobile-web-app-title" content="Modown">
        <meta http-equiv="Cache-Control" content="no-siteapp">
        <title>{$c['title']} - {:cms('title')}</title>
        <meta name="keywords" content="{$c['keywords']}">
        <meta name="description" content="{:htmltext($c['description'])}">
        {include file="app/template/pc/default_pc/header.html"}
        <article style="position: relative;">
            <div class="left-box">
                <div class="whitebg">
                    <div class="news-title">
                        <span class="weizhi">
                            您现在的位置是：
                            <a href="/">
                                首页
                            </a>
                            {if condition="fun_st('cate',array('id'=>fun_sc_p('cate', array('id'=>$c['tid']),
                            'tid'))) gt '0'"} &nbsp;&gt;&nbsp;
                            <a href="*URL*/m_{:fun_sc_p('cate', array('id'=>fun_sc_p('cate', array('id'=>$c['tid']), 'tid')), 'alias')}.html">
                                {:fun_sc_p('cate', array('id'=>fun_sc_p('cate', array('id'=>$c['tid']),
                                'tid')), 'name')}
                            </a>
                            {/if} {if condition="fun_st('cate',array('id'=>$c['tid'])) gt '0'"} &nbsp;&gt;&nbsp;
                            <a href="*URL*/m_{:fun_sc_p('cate', array('id'=>$c['tid']), 'alias')}.html">
                                {:fun_sc_p('cate', array('id'=>$c['tid']), 'name')}
                            </a>
                            {/if}
                        </span>
                        <h2>
                            {:fun_sc_p('cate', array('id'=>$c['tid']), 'name')}
                        </h2>
                    </div>
                    <div class="newstext-box">
                        <div class="shopview">
                        <div class="swiper-container swiper-container-initialized swiper-container-horizontal">
                            <div class="swiper-wrapper" style="transform: translate3d(0px, 0px, 0px);">
                                {volist name=":expz($c[fun_sc_p('model_ziduan', array('tid'=>$c['model'],'class'=>8), 'name')],PHP_EOL)" id="vo"}
                                <div class="swiper-slide swiper-slide-active" style="width: 331px;">
                                    <div class="swiper-zoom-container">
                                        <img src="{$vo}" alt="">
                                    </div>
                                </div>
                                {/volist}
                            </div>
                            <div class="swiper-pagination swiper-pagination-white swiper-pagination-bullets">
                            </div>
                            <div class="swiper-button-prev swiper-button-disabled" tabindex="0" role="button"
                            aria-label="Previous slide" aria-disabled="true">
                            </div>
                            <div class="swiper-button-next" tabindex="0" role="button" aria-label="Next slide"
                            aria-disabled="false">
                            </div>
                        </div>
                        </div>
                        <div class="product">
                            <h1>
                                {$c.title}
                            </h1>
                            <p class="product-jianjie">
                                <span>
                                    商品简介：
                                </span>
                                 {empty name="$c.description"}{:htmltext(cut($c['content'],60))}{else /}{:cut($c.description,60)}{/empty}
                            </p>
                            <p>
                                <span>
                                    {:cms('mingpoint')}：
                                </span>
                                {$c.jifen}
                            </p>
                            {volist name=":fun_s('model_ziduan',array('open1'=>1,'tid'=>$c['model']),'px desc',30,1)" id="vo"}
                            {if condition="socha(fun_sc_p('model_ziduan_l', array('dianji'=>fun_sc_p(m($c.model), array('id'=>$c.id), fun_sc_p('model_ziduan', array('tid'=>$c.model,'liandong'=>1), 'name'))), 'yingchang'),$vo.name) neq '1'"}
                            <p>
                                <span>
                                    {$vo.title}：
                                </span>
                                {$c[$vo.name]}
                            </p>
                            {/if}
                            {/volist}
                            <table class="layui-table">
                            	<colgroup>
                            	 	 <col width="100">
                            	 	 <col width="100">
                            	 	 <col>
                            	</colgroup>
                            	<tbody>
                            	  	 <tr>
                            	  	 <td>
                            	  	 	
                            	  	 	{if condition="$fufei eq '1'"}
                            	  	 	<a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-fluid chufa115cms_t"  title="确定要付费{$c['jifen']}{:cms('mingpoint')}购买该商品吗？" code="1" url="{:url('api/api/fufei',array('id'=>$id,'m'=>$c['model']))}">支付购买</a>
                            	  	 	{else /}
                            	  	 	<a href="{$c['fujian']}" class="layui-btn layui-btn-danger layui-btn-fluid">点击下载</a>
                            	  	 	{/if}
                                     </td>
                            	  	 <td>
                            	  	 	<a href="javascript:;" class="layui-btn layui-btn-normal layui-btn-fluid chufa115cms shoucang" res="2" code="1" url="{:url('api/api/shoucang',array('id'=>$id,'m'=>$c['model']))}">{if condition="fun_st('shoucang', array('tid'=>$id,'model'=>$c['model'],'uid'=>session('userid'),'fl'=>1))
                                    neq '0'"} 收藏成功{else /}收藏{/if}</a>
                            	  	 </td>
                            	  	 </tr>
                            	 </tbody>
                            </table>
                            
                        </div>
                        <div class="clear blank">
                        </div>
 
                        <div class="newstext">
                            {$c['content']|htmlspecialchars_decode}
                        </div>
                        <div class="diggit">
                            <a href="JavaScript:;" class="chufa115cms" res="1" code="1" url="{:url('api/api/zan',array('id'=>$id,'m'=>$c['model']))}">
                                很赞哦！
                            </a>
                            (
                            <b class="dianzan">
                                {$c['zan']}
                            </b>
                            )
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                </div>
                <div class="clear blank">
                </div>
                <div class="product-suiji whitebg">
                    <div class="news-title">
                        <h2>
                            最新商品
                        </h2>
                    </div>
                    <ul>
                        {volist name=":fun_s($h,array('open'=>1,'tid'=>$c.tid),'time desc',30,1)" id="vo"}
          
                        <li>
                            <a href="*URL*/s_{:m($vo['model'])}_{$vo.id}.html" title="{$vo.title}">
                           	<i>
                            <img src="{$vo.pic} " onerror="this.src='*ADMIN*/img/pic.jpg';">
                            </i>	
                                <h2>{$vo.title}</h2>
                                <p>{$vo.description|htmltext} </p>
                                <span class="price-area">
                                	<em>{:cms('mingpoint')}</em>
                                	{$vo.jifen}
                                </span>
                                <span class="pics-btn">立即购买</span>
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
                {:ad(9)}
                <!-- 评论 开始 -->
                {include file="app/template/pc/default_pc/pinglun.html"}
                <!-- 评论 结束 -->
            </div>
            <aside class="side-section right-box" style="position: static; left: auto; width: 320px;">
            	{if condition="cmspc('cms11') eq 1"}
            	<div class="whitebg tuijian">
                    <h2 class="side-title">
                        会员信息
                    </h2>
                    <div class="athuor-info layui-clear">
                        <a href="*URL*/uid_{$c['uid']}.html" target="_blank">
                            <img src="{:fun_sc_p('member', array('userid'=>$c['uid']), 'userhead')}" onerror="this.src='/public/img/touxiang.jpg';">
                            <div class="nick">
                                <h3>{:fun_sc_p('member', array('userid'=>$c['uid']), 'username')}</h3>
                                <span>
                                	{empty name=":fun_sc_p('member', array('userid'=>$c['uid']), 'description')"}
                                	初来乍到，请多关照
                                	{else /}
                                	{:cut(fun_sc_p('member', array('userid'=>$c['uid']), 'description'),28)}
                                	{/empty}
                                </span>
                            </div>
                        </a>
                        <div class="data">
                            <div class="layui-clear">
                                <span>投稿{:fun_sc_p('model', array('id'=>$c['model']), 'title')}</span>
                                <span>通过</span>
                                <span>获赞</span>
                            </div>
                            <div class="number layui-clear">
                                <span>{:fun_st($h,array('uid'=>$c['uid']))}</span>
                                <span>{:fun_st($h,array('open'=>1,'uid'=>$c['uid']))}</span>
                                <span class="allhz">{:fun_st('zan',array('open'=>1,'suid'=>$c['uid'],'fl'=>1))}</span>
                            </div>
                        </div>
                        <div class="btn">
                            <a href="http://wpa.qq.com/msgrd?v=3&uin={:fun_sc_p('member', array('userid'=>$c['uid']), 'userqq')}&site=qq&menu=yes" target="_blank"><i class="iconfont icon-QQ"></i>联系作者</a>
                            <a href="*URL*/uid_{$c['uid']}.html" target="_blank">他的主页</a>
                        </div>
                    </div>
                </div>
                <div class="clear blank">
                </div>
                {/if}
                <div class="whitebg tuijian">
                    <h2 class="side-title">
                        置顶推荐
                    </h2>
                    {volist name=":fun_s($h,array('open'=>1,'tid'=>$c['tid'],'settop'=>1),'times
                    desc',1,1)" id="vo"}
                    <section class="topnews imgscale">
                        <a href="*URL*/s_{:m($vo['model'])}_{$vo.id}.html" target="_blank">
                            <img src="{$vo.pic} " alt="{$vo.title}" onerror="this.src='*ADMIN*/img/pic.jpg';">
                            <span>
                                {$vo.title}
                            </span>
                        </a>
                    </section>
                    {/volist}
                    <ul>
                        {volist name=":fun_s($h,array('open'=>1,'tid'=>$c['tid'],'settop'=>1),'view
                        desc',9,1)" id="vo" offset="1" empty="
                        <div align='center' style='padding: 100px 0px 100px 0px;'>
                            暂时没有数据
                        </div>
                        "}
                        <li>
                            <a href="*URL*/s_{:m($vo['model'])}_{$vo.id}.html" target="_blank">
                                <i>
                                    <img src="{$vo.pic} " alt="{$vo.title}" onerror="this.src='*ADMIN*/img/pic.jpg';">
                                </i>
                                <p>
                                    {$vo.title}
                                </p>
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
                <div class="clear blank">
                </div>
                <div class="whitebg product-love">
                    <h2 class="side-title">
                        猜你喜欢
                    </h2>
                    <ul>
                        {volist name=":fun_sj($h,array('open'=>1,'model'=>$c['model'],'tid'=>$c['tid']),6)"
                        id="vo"}
                        <li>
                            <a href="*URL*/s_{:m($vo['model'])}_{$vo.id}.html" title="{$vo.title}">
                           	<i>
                            <img src="{$vo.pic} " onerror="this.src='*ADMIN*/img/pic.jpg';">
                            </i>	
                                <h2>{$vo.title}</h2>
                                <p>{$vo.description|htmltext} </p>
                                <span class="price-area">
                                	<em>{:cms('mingpoint')}</em>
                                	{$vo.jifen}
                                </span>
                                <span class="pics-btn">立即购买</span>
                            </a>
                        </li>
                        {/volist}
                    </ul>
                </div>
            </aside>
        </article>
        <div class="clear blank">
        </div>
        <!--系统预留插件钩子请保留内容模型-->
        {:h('showpc')}
        {include file="app/template/pc/default_pc/footer.html"}